import Mock from 'mockjs';
import homeApi from './mockData/home';
import userApi from './mockData/user';
import permissionApi from './mockData/permission'

Mock.mock('/api/home/getTableData', 'get', homeApi.tableData);

Mock.mock('/api/home/getCountData', 'get', homeApi.countData);

Mock.mock(/user\/getUserData/,"get", userApi.getUserList)

Mock.mock(/user\/deleteUser/, "get", userApi.deleteUser)

Mock.mock(/user\/addUser/,"post", userApi.createUser)

Mock.mock(/user\/editUser/, "post",userApi.updateUser)

Mock.mock(/permission\/getMenu/, "post",permissionApi.getMenu)

export default Mock;